#delimit ;
clear all;
set more off;

capture log close;

log using log/atuscps_0321.log, replace;
 
import delimited
tucaseid
tulineno
gediv
gemetsta
gepseucl
gepseust
gereg
gestfips
gtcbsa
gtco
gtmetsta
hefaminc
hehousut
hephoneo
hetelavl
hetelhhd
hetenure
hrhhid
hrhhid2
hrhtype
hrintsta
hrlonglk
hrmis
hrmonth
hrnumhou
hrsample
hrsersuf
hryear4
hubus
hubusl1
hubusl2
hubusl3
hubusl4
hufaminc
hufinal
huhhnum
huinttyp
huprscnt
hurespli
huspnish
hxfaminc
peabspdo
peabsrsn
peafever
peafnow
peafwhen
peafwhn1
peafwhn2
peafwhn3
peafwhn4
pecert1
pecert2
pecert3
pecohab
pecyc
pedadtyp
pedipged
pedisdrs
pedisear
pediseye
pedisout
pedisphy
pedisrem
pedw4wk
pedwavl
pedwavr
pedwlko
pedwlkwk
pedwrsn
pedwwk
pedwwnto
peeduca
peern
peerncov
peernh1o
peernh2
peernhro
peernhry
peernlab
peernper
peernrt
peernuot
peernwkp
pefntvty
pegr6cor
pegrprof
pehgcomp
pehract1
pehract2
pehractt
pehravl
pehrftpt
pehrrsn1
pehrrsn2
pehrrsn3
pehrusl1
pehrusl2
pehruslt
pehrwant
pehspnon
peio1cow
peio1icd
peio1ocd
peio2cow
peio2icd
peio2ocd
pejhrsn
pejhwant
pejhwko
pelayavl
pelaydur
pelayfto
pelaylk
pelkavl
pelkdur
pelkfto
pelkll1o
pelkll2o
pelklwo
pelkm1
pelndad
pelnmom
pemaritl
pemjnum
pemjot
pemlr
pemntvty
pemomtyp
pems123
penatvty
penlfact
penlfjh
penlfret
peparent
pepdemp1
pepdemp2
peret1
perrp
peschenr
peschft
peschlvl
pesex
pespouse
prabsrea
pragna
prcitshp
prcivlf
prcow1
prcow2
prcowpg
prdasian
prdisc
prdisflg
prdtcow1
prdtcow2
prdthsp
prdtind1
prdtind2
prdtocc1
prdtocc2
premp
premphrs
prempnot
prerelg
prernhly
prernwa
prexplf
prfamnum
prfamrel
prfamtyp
prftlf
prhernal
prhrusl
primind1
primind2
prinuyer
prioelg
prjobsea
prmarsta
prmjind1
prmjind2
prmjocc1
prmjocc2
prmjocgr
prnagpws
prnagws
prnlfsch
prnmchld
prpertyp
prpthrs
prptrea
prsjmj
prtage
prunedur
pruntype
prwernal
prwksch
prwkstat
prwntjob
ptdtrace
pthr
ptnmemp1
ptnmemp2
ptot
ptwk
puabsot
puafever
pubus1
pubus2ot
pudis
pudis1
pudis2
puhroff1
puhroff2
puhrot1
puhrot2
pujhdp1o
pulay
pulay6m
pulayavr
pulaydt
pulineno
pulk
pulkavr
pulkdk1
pulkdk2
pulkdk3
pulkdk4
pulkm2
pulkm3
pulkm4
pulkm5
pulkm6
pulkps1
pulkps2
pulkps3
pulkps4
pupelig
puretot
puslfprx
puwk
tratusr
tubwgt
ptcovid1
ptcovid2
ptcovid3
ptcovid4
ptcovid5w
pepar1
pepar2
pepar1typ
pepar2typ
 using c:\atus\atus0321\atuscps-0321\atuscps_0321.dat, stringcols(1) ;

label variable gediv "Division";
label variable gemetsta "Metropolitan status (1990 definitions)";
label variable gepseucl "Scrambled pseudo primary sampling unit (PSU) cluster";
label variable gepseust "Scrambled pseudo primary sampling unit (PSU) collapsed stratum";
label variable gereg "Region";
label variable gestfips "Federal Processing Information Standards (FIPS) state code";
label variable gtcbsa "Specific metropolitan core based statistical area (CBSA) code";
label variable gtco "Federal Processing Standards (FIPS) county code";
label variable gtmetsta "Metropolitan status (2000 or 2010 definitions, see note)";
label variable hefaminc "Edited: Family Income";
label variable hehousut "Edited: type of housing unit";
label variable hephoneo "Edited: is a telephone interview acceptable?";
label variable hetelavl "Edited: is there a telephone elsewhere on which people in this household can be contacted?";
label variable hetelhhd "Edited: is there a telephone in this house/apartment?";
label variable hetenure "Edited: are your living quarters owned, rented for cash, or occupied without payment of cash rent?";
label variable hrhhid "Household ID (15-digit identifier)";
label variable hrhhid2 "Household ID part 2 (5-digit identifier)";
label variable hrhtype "Household type";
label variable hrintsta "Interview status";
label variable hrlonglk "Longitudinal link indicator";
label variable hrmis "Month in sample";
label variable hrmonth "Month of interview";
label variable hrnumhou "Total number of persons in the household (household members)";
label variable hrsample "Sample ID (4-character identifier)";
label variable hrsersuf "Serial suffix";
label variable hryear4 "Year of interview";
label variable hubus "Does anyone in this household have a business or a farm?";
label variable hubusl1 "PULINENO of farm or business owner (first owner)";
label variable hubusl2 "PULINENO of farm or business owner (second owner)";
label variable hubusl3 "PULINENO of farm or business owner (third owner)";
label variable hubusl4 "PULINENO of farm or business owner (fourth owner)";
label variable hufaminc "Family income ";
label variable hufinal "Final outcome code";
label variable huhhnum "Household number";
label variable huinttyp "Type of interview";
label variable huprscnt "Number of actual and attempted personal contacts";
label variable hurespli "PULINENO of the current respondent";
label variable huspnish "Spanish only language spoken by all members of household 15 years and older?";
label variable hxfaminc "HEFAMINC: allocation flag";
label variable peabspdo "Edited: are you being paid by your employer for any of the time off last week?";
label variable peabsrsn "Edited: what was the main reason you were absent from work last week?";
label variable peafever "Edited: did you ever serve on active duty in the U.S. Armed Forces?";
label variable peafnow "Edited: are you now in the Armed Forces?";
label variable peafwhen "Edited: was told you served on active duty in Armed Forces. When did you serve?";
label variable peafwhn1 "Edited: when did you serve in the Armed Forces? (first period)";
label variable peafwhn2 "Edited: when did you serve in the Armed Forces? (second period)";
label variable peafwhn3 "Edited: when did you serve in the Armed Forces? (third period)";
label variable peafwhn4 "Edited: when did you serve in the Armed Forces? (fourth period)";
label variable pecert1 "Edited: Does this person have a currently active professional certification or a state or industry license?";
label variable pecert2 "Edited: Were any of this person's certifications or licenses issued by the federal, state, or local government?";
label variable pecert3 "Edited: Earlier you told me that this person had a currently active professional certification or license. Is this certification or license required for the [job, main job, job from which person was on layoff, job from which person last worked]?";
label variable pecohab "Edited: PULINENO of cohabiting partner";
label variable pecyc "Edited: how many years of college credit have you completed?";
label variable pedadtyp "Edited: Is household child a biological, step or adopted child?";
label variable pedipged "Edited: how did you get your high school diploma?";
label variable pedisdrs "Edited: Does this person have difficulty dressing or bathing?";
label variable pedisear "Edited: Is this person deaf or does this person have serious difficulty hearing?";
label variable pediseye "Edited: Is this person blind or have serious difficulty seeing wearing glasses?";
label variable pedisout "Edited: Edited: does this person have difficulty doing errands alone?";
label variable pedisphy "Edited: Does this person have serious difficulty walking or climbing stairs?";
label variable pedisrem "Edited: does person have difficulty concentrating/remembering/making decisions?";
label variable pedw4wk "Edited: did you do any of this work during the last 4 weeks?";
label variable pedwavl "Edited: last week, could you have started a job if one had been offered?";
label variable pedwavr "Edited: why could you not have started a job if one had been offered last week?";
label variable pedwlko "Edited: did you look for work any time in the last 12 months?";
label variable pedwlkwk "Edited: and since you left that job or business have you looked for work?";
label variable pedwrsn "Edited: main reason you were not looking for work during the last 4 weeks?";
label variable pedwwk "Edited: did you actually work at a job or business during the last 12 months?";
label variable pedwwnto "Edited: do you currently want a job, either full or part time?";
label variable peeduca "Edited: highest level of school completed or the highest degree received?";
label variable peern "Edited: total weekly overtime earnings (2 implied decimals)";
label variable peerncov "Edited: on this job, are you covered by a union or employee assoc.";
label variable peernh1o "Edited: hrly pay rate (main job) exc. overtime, tips, & commissions (2 decimals)";
label variable peernh2 "Edited: hrly pay rate (main job) exc. overtime, tips, & commissions (2 decimals)";
label variable peernhro "Edited: how many hours do you usually work per week at this rate?";
label variable peernhry "Edited: hourly/non-hourly status";
label variable peernlab "Edited: on this job, are you a member of a labor union or of an employee assoc.?";
label variable peernper "Edited: main job, easiest to report earnings: hourly, weekly, annually, or other";
label variable peernrt "Edited: are you paid at an hourly rate on this job?";
label variable peernuot "Edited: do you usually receive overtime pay, tips, or commissions at your job?";
label variable peernwkp "Edited: how many weeks a year do you get paid?";
label variable pefntvty "Edited: in what country was your father born?";
label variable pegr6cor "Edited: did you complete six or more graduate or professional school courses?";
label variable pegrprof "Edited: since BA, taken any graduate/professional school courses for credit?";
label variable pehgcomp "Edited: highest grade of regular school you completed before receiving your GED?";
label variable pehract1 "Edited: last week, how many hours did you actually work at your main job?";
label variable pehract2 "Edited: last week, how many hours did you actually work at your other job(s)?";
label variable pehractt "Edited: total hours actually worked last week (sum of PEHRACT1 and PEHRACT2)";
label variable pehravl "Edited: last week, could you have worked full time if hours had been available?";
label variable pehrftpt "Edited: usually work > 35 hours per week at your job(s)/family business?";
label variable pehrrsn1 "Edited: what is your main reason for working part time?";
label variable pehrrsn2 "Edited: what is the main reason you do not want to work full time?";
label variable pehrrsn3 "Edited: what is the main reason you worked less than 35 hours last week?";
label variable pehrusl1 "Edited: how many hours per week do you usually work at your main job?";
label variable pehrusl2 "Edited: how many hours per week do you usually work at your other job(s)?";
label variable pehruslt "Edited: total hours usually worked per week (sum of PEHRUSL1 and PEHRUSL2)";
label variable pehrwant "Edited: do you want to work a full time work week of 35 hours or more per week?";
label variable pehspnon "Edited: are you Spanish, Hispanic, or Latino?";
label variable peio1cow "Edited: individual class of worker (main job)";
label variable peio1icd "Edited: industry code (main job)";
label variable peio1ocd "Edited: occupation code (main job)";
label variable peio2cow "Edited: individual class of worker (second job)";
label variable peio2icd "Edited: industry code (second job)";
label variable peio2ocd "Edited: occupation code (second job)";
label variable pejhrsn "Edited: what is the main reason you left your last job?";
label variable pejhwant "Edited: do you intend to look for work during the next 12 months?";
label variable pejhwko "Edited: have you worked at a job or business at any time in the last 12 months?";
label variable pelayavl "Edited: could you have returned to work during the last 7 days if recalled?";
label variable pelaydur "Edited: duration of layoff (number of weeks)";
label variable pelayfto "Edited: the job from which you are on layoff full time job of >=35 hours/week?";
label variable pelaylk "Edited: though you are to be called back to work, looking for work last 4 weeks?";
label variable pelkavl "Edited: could you have started a job in the last 7 days if one had been offered?";
label variable pelkdur "Edited: duration of job seeking (number of weeks)";
label variable pelkfto "Edited: are you seeking a full time or part time job?";
label variable pelkll1o "Edited: before you started looking for work, what were you doing?";
label variable pelkll2o "Edited: did you lose or quit that job, or was it a temporary job that ended?";
label variable pelklwo "Edited: when did you last work?";
label variable pelkm1 "Edited: things you have done to find work during the last 4 weeks? (1st method)";
label variable pelndad "Edited: PULINENO of father";
label variable pelnmom "Edited: PULINENO of mother";
label variable pemaritl "Edited: are you now married, widowed, divorced, separated, or never married?";
label variable pemjnum "Edited: altogether, how many jobs did you have?";
label variable pemjot "Edited: in the last seven days, did you have more than one job?";
label variable pemlr "Edited: monthly labor force recode";
label variable pemntvty "Edited: in what country was your mother born?";
label variable pemomtyp "Edited: Is household child a biological, step, or adopted child?";
label variable pems123 "Edited: was your master's degree program a 1-year, 2-year, or 3-year program?";
label variable penatvty "Edited: in what country were you born?";
label variable penlfact "Edited: what best describes your situation at this time? (Not in labor force)";
label variable penlfjh "Edited: when did you last work at a job or business?";
label variable penlfret "Edited: are you retired from a job or business?";
label variable peparent "Edited: PULINENO of parent";
label variable pepdemp1 "Does this person usually have any paid employees?";
label variable pepdemp2 "Does this person usually have any paid employees?";
label variable peret1 "Edited: do you currently want a job, either full or part time?";
label variable perrp "Edited: how is this person related to you?";
label variable peschenr "Edited: last week, were you enrolled in a high school, college, or university?";
label variable peschft "Edited: are you enrolled in school as a full-time or part-time student?";
label variable peschlvl "Edited: would that be high school, college, or university?";
label variable pesex "Edited: sex";
label variable pespouse "Edited: PULINENO of spouse";
label variable prabsrea "Reason not at work by pay status";
label variable pragna "Agricultural/non-agricultural industry";
label variable prcitshp "Citizenship status";
label variable prcivlf "Civilian labor force";
label variable prcow1 "Class of worker recode (main job)";
label variable prcow2 "Class of worker recode (second job)";
label variable prcowpg "Class of worker - private or government";
label variable prdasian "Detailed Asian race recode";
label variable prdisc "Discouraged worker recode";
label variable prdisflg "Does this person have any of these disability conditions?";
label variable prdtcow1 "Detailed class of worker recode (main job)";
label variable prdtcow2 "Detailed class of worker recode (second job)";
label variable prdthsp "Detailed Hispanic origin group";
label variable prdtind1 "Detailed industry recode (main job)";
label variable prdtind2 "Detailed industry recode (second job)";
label variable prdtocc1 "Detailed occupation recode (main job)";
label variable prdtocc2 "Detailed occupation recode (second job)";
label variable premp "Employed persons recode";
label variable premphrs "Reason not at work or hours at work";
label variable prempnot "Employed, unemployed, or not in the labor force";
label variable prerelg "Earnings edit eligibility flag";
label variable prernhly "Hourly earnings (2 implied decimals)";
label variable prernwa "Weekly earnings (2 implied decimals)";
label variable prexplf "Experienced labor force employment";
label variable prfamnum "Family number recode";
label variable prfamrel "Family relationship code";
label variable prfamtyp "Family type recode";
label variable prftlf "Full time labor force";
label variable prhernal "PRERNHLY: allocation flag";
label variable prhrusl "Usual hours worked weekly";
label variable primind1 "Intermediate industry recode (main job)";
label variable primind2 "Intermediate industry recode (second job)";
label variable prinuyer "Immigrant's year of entry into the U.S.";
label variable prioelg "Industry and occupation edit eligibility flag";
label variable prjobsea "Job search recode";
label variable prmarsta "Marital status based on Armed Forces participation";
label variable prmjind1 "Major industry recode (main job)";
label variable prmjind2 "Major industry recode (second job)";
label variable prmjocc1 "Major occupation recode (main job)";
label variable prmjocc2 "Major occupation recode (second job)";
label variable prmjocgr "Major occupation categories (main job)";
label variable prnagpws "Non-agricultural private wage and salary workers recode";
label variable prnagws "Non-agricultural wage and salary workers recode";
label variable prnlfsch "Not in labor force activity - in school or not in school";
label variable prnmchld "Number of own children < 18 years of age";
label variable prpertyp "Type of person recode";
label variable prpthrs "At work 1-34 hours by hours at work";
label variable prptrea "Detailed reason for part time work";
label variable prsjmj "Single/multiple jobholder";
label variable prtage "Age";
label variable prunedur "Duration of unemployment (number of weeks)";
label variable pruntype "Reason for unemployment";
label variable prwernal "PRERNWA: allocation flag";
label variable prwksch "Labor force by time worked or lost";
label variable prwkstat "Full time or part time work status";
label variable prwntjob "Not in labor force recode - want a job or other not in labor force";
label variable ptdtrace "Race (topcoded)";
label variable pthr "Hourly pay topcode flag";
label variable ptnmemp1 "Excluding all owners, how many paid employees does this person usually have?";
label variable ptnmemp2 "Excluding all owners, how many paid employees does this person usually have?";
label variable ptot "Weekly overtime amount topcode flag";
label variable ptwk "Weekly earnings topcode flag";
label variable puabsot "In the last seven days, did you have a job either full or part time?";
label variable puafever "Did you ever serve on active duty in the U.S. Armed Forces?";
label variable pubus1 "Last week, did you do any unpaid work in the family business or farm?";
label variable pubus2ot "Do you receive any payments or profits from the business?";
label variable pudis "Disability continues to prevent you from accepting work in next 6 months?";
label variable pudis1 "Disability prevents you from accepting work in the next 6 months?";
label variable pudis2 "Disability prevents you from accepting work in the next 6 months?";
label variable puhroff1 "Last week, lose or take off any hours from your job for any reason?";
label variable puhroff2 "How many hours did you take off?";
label variable puhrot1 "Last week, did you work any overtime or extra hours? (main job)";
label variable puhrot2 "How many additional hours did you work?";
label variable pujhdp1o "Did you do any of this work in the last 4 weeks?";
label variable pulay "During the last seven days, were you on layoff from a job?";
label variable pulay6m "Given any indication that you will be recalled to work within the next 6 months?";
label variable pulayavr "Why could you not have started a job in the last week?";
label variable pulaydt "Has your employer given you a date to return to work? (to layoff job)";
label variable pulineno "Person line number";
label variable pulk "Have you been doing anything to find work during the last 4 weeks?";
label variable pulkavr "Why could you not have started a job last week?";
label variable pulkdk1 "Said trying to find work. How did you go about looking? (1st method)";
label variable pulkdk2 "PULKDK1 text: (second method)";
label variable pulkdk3 "PULKDK1 text: (third method)";
label variable pulkdk4 "PULKDK1 text: (fourth method)";
label variable pulkm2 "Things you have done to find work during the last 4 weeks? (second method)";
label variable pulkm3 "PULKM2 text: (third method)";
label variable pulkm4 "PULKM2 text: (fourth method)";
label variable pulkm5 "PULKM2 text: (fifth method)";
label variable pulkm6 "PULKM2 text: (sixth method)";
label variable pulkps1 "Can you tell me more about what you did to search for work? (first method)";
label variable pulkps2 "PULKPS1 text: (second method)";
label variable pulkps3 "PULKPS1 text: (third method)";
label variable pulkps4 "PULKPS1 text: (fourth method)";
label variable pupelig "Interview status of each person in the household";
label variable puretot "Last month you were reported to be retired. Are you still retired?";
label variable puslfprx "Labor force information collected by self or proxy response";
label variable puwk "Last week, did you do any work for either pay or profit?";
label variable tratusr "ATUS respondent";
label variable tubwgt "ATUS base weight";
label variable tucaseid "ATUS Case ID (14-digit identifier)";
label variable tulineno "ATUS person line number";
label variable ptcovid1 "At any time in the LAST 4 weeks, did you telework or work at home for pay BECAUSE OF THE CORONAVIRUS PANDEMIC?";
label variable ptcovid2 "At any time in the LAST 4 WEEKS, were you unable to work because your EMPLOYER CLOSED OR LOST BUSINESS due to the Coronavirus?";
label variable ptcovid3 "Did you receive any pay from your EMPLOYER for the hours you DID NOT work in the last 4 weeks?";
label variable ptcovid4 "Did the Coronavirus pandemic prevent you from looking for work in the LAST 4 WEEKS?";
label variable ptcovid5w "At any time in the last 4 weeks, did you need medical care for something other than Coronavirus, but not get it because of the Coronavirus pandemic?";
label variable pepar1 "Edited: PULINENO of first parent";
label variable pepar2 "Edited: PULINENO of second parent";
label variable pepar1typ "Edited: Type of PEPAR1";
label variable pepar2typ "Edited: Type of PEPAR2";

keep if tratusr==1; 

keep gtmetsta hryear4 hrmonth hefaminc peeduca pehspnon pesex prtage ptdtrace tucaseid tulineno gestfips hrhhid hrhhid2 pulineno prcitshp
	 pedisdrs pedisear pediseye pedisout pedisphy pedisrem;
su;
save work/atuscps_0321.dta, replace;
log close;